import { h, onMounted } from "vue";
import { useRoute, useRouter } from 'vue-router'
// 空白页面
export default {
    setup() {
        const $router = useRouter()
        const $route = useRoute()
        onMounted(() => {
            if ($route.query.redirect) {
                // 如果有地址则重新跳转到该页面
                $router.replace({ path: $route.query.redirect as string })
            }
        })
        return () => h("div", {},)
    }
}